package com.hyzx.qbasic.admin.model.vo.req.admin;

import com.alibaba.fastjson.annotation.JSONField;
import com.hyzx.qbasic.admin.model.vo.req.BaseRequest;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by 黄江华 on 2017/10/17
 */

public class AddUserReq extends BaseRequest {

    @NotEmpty(message = "用户名不能为空")
    @Length(max = 50, message = "用户名不能超过50个字符")
    private String userName;

    @NotEmpty(message = "姓名不能为空")
    @Length(max = 50, message = "姓名不能超过50个字符")
    private String realName;

    @JSONField(serialize = false) //密码明文不记录到日志里
    @NotEmpty(message = "密码不能为空")
    @Length(max = 50, message = "密码不能超过50个字符")
    private String password;

    @NotNull(message = "状态不能为空")
    private Integer userStatus;

    private List<String> userRoleList;

    private List<Integer> orgIdList;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public List<String> getUserRoleList() {
        return userRoleList;
    }

    public void setUserRoleList(List<String> userRoleList) {
        this.userRoleList = userRoleList;
    }

    public List<Integer> getOrgIdList() {
        return orgIdList;
    }

    public void setOrgIdList(List<Integer> orgIdList) {
        this.orgIdList = orgIdList;
    }
}
